package com.young4j.springdemo.domain;

import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @Description
 * @Author yf
 * @Date 2019/1/2 16:28
 **/
@Document(indexName = "yf_springboot_es",type = "student")
public class Estudent implements Serializable {
    private Long id;
    private String name;

    public Estudent(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Estudent() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
